//
//  CoreDataHandler.h
//  ContactsCoreData
//
//  Created by dllo on 15/11/21.
//  Copyright © 2015年 张树林. All rights reserved.
//

#import <Foundation/Foundation.h>

@class SLPerson;

@interface SLCoreDataHandler : NSObject

+ (NSMutableArray *)selectAll;

+ (NSMutableArray *)selectWithName:(NSString *)name;

+ (void)addWithContact:(SLPerson *)contact;

+ (void)updateWithContact:(SLPerson *)contact;

+ (void)deleteWithContact:(SLPerson *)contact;

+ (BOOL)hasContact:(SLPerson *)person;

@end
